<template>
  <el-button
    type="primary"
    link
    @click="handleClick"
    :disabled="planningStore.currentStep === 1"
  >
    <el-icon><i-ep-arrow-left /></el-icon>
    <span>上一步</span>
  </el-button>
</template>

<script setup>
import usePlanningStore from "@/stores/planningStore";

const planningStore = usePlanningStore();

const handleClick = () => {
  if (planningStore.currentStep > 1) {
    planningStore.currentStep--;
  }
};
</script>
